/**
\ * Constants.java
 * Product:BaseLayer
 * Version:1.0
 * Copyright 2009 by DNE
 * All Rights Reserved.
 */
package com.site.util.constant;


/**
 * 框架中用到的基本常量
 */
/**
 * @author LILINQ
 *
 */
public class Constants {
	
	public final static String RANDOM_CODE="sqs_random_code";
	public final static String ROB_RANDOM_CODE="rob_random_code";
	public final static String LOGIN_USER_FRONTEND="login_user";
	
	/**
	 * 登陆
	 */
	public final static String LOGIN_USER_BACKEND="sys_login_user";
	
	/**
	 * 公共的YES和NO
	 */
	public final static String COMM_YESORNO="COMM_YESORNO";
	/**
	 * 公共Y和N
	 */
	public final static String COMM_YORN="COMM_Y_OR_N";
	public final static String COMM_Y="Y";
	public final static String COMM_N="N";

	public final static String APPLICATION_COMMON_XML = "application_common_xml";
	public final static String SITE_CONFIGPATH="configPath";
	
	public final static String MARK_DELETE_YES="Y";
	public final static String MARK_DELETE_NO="N";

	
	public final static String COMMON_MESSAGE_XML = "common_message";
	public final static String COMMON_CODE_XML = "common_code";
	public final static String COMMON_SCREENITEM_XML = "common_screenitem";
	
	//存在多语言存放在session中的key
	public final static String COMMON_LANGUAGE = "COMMON_LANGUAGE";
	//默认语言环境
	public final static String LANGUAGE_DEFAULT = "zh";
	//系统配制文件名
	public final static String SITE_PROPERTIES="site";
	
	/**
	 * 允许上传文件类型
	 */
	public static final String UPDATE_FILE_TYPES = "jpg,jpeg,png,gif,bmp,amr";
	/**
	 * 允许上传文件大小
	 */
	public static final Long FILE_SIZE = 2048L;
	//密码对 存放在session的key
	public final static String SITE_RSA_KEY_FILE = "SITE_RSA_KEY_FILE";
	//密码加密的key路径
	public final static String SITE_RSA_KEY_PATH = "site.rsa.key.path";
	/**
	 * 会员注册密码加密的key路径
	 */
	public static final String MEMBER_KEY_PAIR_PATH="member.key.pair.path";
	/**
	 * 存储所有属性对象名
	 */
	public final static String PROPERTY_NAME="property_name";
	/**
	 * 存储所有code对象名
	 */
	public final static String CODE_MAP_NAME="code_map_name";
	/**
	 *所有菜单 在 context 中的key值
	 */
	public static final String COMMON_MENU = "COMMON_MENU";
	/**
	 *角色菜单 
	 */
	public static final String ROLE_MENU = "ROLE_MENU";
	/**
	 * 菜单name前缀
	 */
	public static final String MENU_PREFIX = "MENU";
	/**
	 * 用户代理(为了安全,这里我们手动修改我xx)
	 */
	public static final String USER_AGENT = "meilv";
	/**
	 * 广告类型
	 */
	public static final String ADVERTISE_TYPE = "ADVERTISE_TYPE";
	/**
	 * 餐厅类型（普通，宴席）
	 */
	public static final String RESTAURANT_TYPE = "RESTAURANT_TYPE";
	/**
	 * 餐厅类型：宴席
	 */
	public static final String FEAST = "FEAST";
	
}